<div id="tablecontent" class="col-md-12">						
	<div class="form-group">
		<div class="table-responsive">
			<table class="table table-bordered table-condensed table-striped" style="background:#f9f9f9;">
				<thead>
					<tr>
						<th class="tblhead" style="width:10px;text-align:center;">No</th>
						<th class="tblhead" style="width:15px;text-align:center;">Type Name</th>
						<th class="tblhead" style="width:15px;text-align:center;">Room Name</th>
						<th class="tblhead" style="width:15px;text-align:center;">Floor</th>
						<th class="tblhead" style="width:15px;text-align:center;">Detail</th>
						<th class="tblhead" style="width:15px;text-align:center;">Status</th>
						<th class="tblhead" style="width:15px;text-align:center;">Action</th>
					</tr>
				</thead>
				<tbody>
					<?php
					if (empty($list_data)) {
						?>
						<tr><td colspan="9" style="text-align:center">No Data Available</td></tr>
						<?php
					} else {
						foreach ($list_data as $row) {
							?>
							<tr>
								<?php
								$room_id 		= $row["MST_CATEGORY_ID"];
								$type_name 		= $row["MST_TYPE_DESC"];
								$floor_desc 	= $row["MST_FLOOR_DESC"];
								$status 		= $row["MST_CATEGORY_STATUS"];
								$category_name 	= $row["MST_CATEGORY_DESC"];
								$type 			= $row["MST_TYPE_ID"];
								$floor_id 		= $row["MST_FLOOR_ID"];
								$room_status 	= ($status == 'Y') ? 'Active' : 'Not Active';
								?>

								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;"><?php echo $row["RECNUM"]; ?>.</td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $type_name; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $category_name; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:left;"><?php echo $floor_desc; ?></td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;">
									<a class="btn btn-sm btn-info" href="#" onclick="view_detail('<?php echo $room_id ?>','<?php echo $type ?>');">
										<!--span class="glyphicon glyphicon-eye-open"></span--> View</a>
								</td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;">
									<?php if($status=='Y') :?>
										<a class="btn btn-sm btn-primary" href="#" onclick="activation_room('<?php echo $room_id ?>', '<?php echo $status ?>');">
										<!--span class="glyphicon glyphicon-ok"></span--> <?php echo $room_status; ?></a>
									<?php else: ?>
										<a class="btn btn-sm btn-danger" href="#" onclick="activation_room('<?php echo $room_id ?>', '<?php echo $status ?>');">
										<!--span class="glyphicon glyphicon-ban-circle"></span--> <?php echo $room_status; ?></a>
									<?php endif; ?>
								</td>
								<td bgcolor="#FFFFFF" class="tbl-content-c" style="text-align:center;">
									<a class="btn btn-sm btn-warning" href="#" onclick="edit_data('<?php echo $room_id ?>');">
										<!--span class="glyphicon glyphicon-edit"></span--> Edit</a>
								</td>
							</tr>
							<?php
						}
					}
					?>
				</tbody>
			</table>
		</div>
	</div>
	<div class="form-group">
		<div id="mypaging">
			<?php
			echo $paging;
			echo $jump_page;
			echo $ipp;
			?>
		</div>								
	</div>						
</div>